#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int n;
	cin >> n;

	int ans = 1;
	for (int i = 1; i < n; i++) {
		ans = (ans + 1) * 2;
	}
	cout << ans;
	return 0;
}
